/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.designPatterns.prototype;

import com.designPatterns.state.HappyState;
import com.designPatterns.state.SadState;

/**
 *
 * @author minga
 */
public class Person implements Prototype{
    String name;
    public Person(String name)
    {
        this.name = name;
    }

    public Person(HappyState happyState) {
        throw new UnsupportedOperationException("Not yet implemented");
    }

   
    @Override
    public Prototype doClone() {
       return new Person(name);
    }
    public String toString()
    {
      return "this person name is"+name;   
    }

    public String sayHello() {
        throw new UnsupportedOperationException("Not yet implemented");
    }

    public String sayGoodbye() {
        throw new UnsupportedOperationException("Not yet implemented");
    }

    public void setEmotionalState(SadState sadState) {
        throw new UnsupportedOperationException("Not yet implemented");
    }
}
